from django.contrib import admin
from .models import Info, Spaces, parking_lot, park_info, no_register_records, all_records
from firepark_admin.models import Userinfo, Plate, use_records

# Register your models here.
admin.site.site_header = "firepark系统后台"
admin.site.site_title = "firepark系统后台"
admin.site.index_title = "firepark"
admin.site.register(Userinfo)
admin.site.register(Plate)
# admin.site.register(use_records)
admin.site.register(Info)
admin.site.register(Spaces)
admin.site.register(parking_lot)
admin.site.register(park_info)
admin.site.register(no_register_records)
admin.site.register(all_records)

class MyModelAdmin(admin.ModelAdmin):
    # list_filter = (
    #     ('add_time', DateRangeFilter)
    # )
    list_filter = ['add_time']


admin.site.register(use_records, MyModelAdmin)

